home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
051-075
/
scopedisk51
/
pointer
/
pointer.asc
< prev
next >
Wrap
Text File
|
1995-03-18
|
2KB
|
75 lines
REM This program shows how to custom make pointers for your AmigaBasic
REM programs. It was done by Woody Pope 1/2/89. Compiled by AC-Basic.
REM NOTE!!!: This program will not work unless compiled. For some reason,
REM AmigaBasic blows away the array in the source code. WEIRD!
CLS
LIBRARY "intuition.library"
DIM s%(36)
REM Describe Pointer:First and last two words must be zero.
REM This is a 16 x 16 pointer. Every two array element words
REM describe the colors for each of 16 pixels across the pointer,
REM bit by bit.
REM s%(2) & s%(3) Binary = 0000000110000000\ color plane for top line.
REM 0000000110000000/
REM Color code: 0,0=color0(clear)
REM 1,0=color1
REM 0,1=color2
REM 1,1=color3
REM Pixels 1-7 are color0, Pixels 8 & 9 are color3, Pixels 10-16 are color0.
s%(0)=0
s%(1)=0
s%(2)=&H0180
s%(3)=&H0180
s%(4)=&H07E0
s%(5)=&H07E0
s%(6)=&H1FF8
s%(7)=&H1FF8
s%(8)=&H3FFC
s%(9)=&H3FFC
s%(10)=&H7E7E
s%(11)=&H7FFE
s%(12)=&H700E
s%(13)=&H7FFE
s%(14)=&HE007
s%(15)=&HFC3F
s%(16)=&HC003
s%(17)=&HF81F
s%(18)=&HC003
s%(19)=&HF81F
s%(20)=&HE007
s%(21)=&HFC3F
s%(22)=&H700E
s%(23)=&H7FFE
s%(24)=&H7E7E
s%(25)=&H7FFE
s%(26)=&H3FFC
s%(27)=&H3FFC
s%(28)=&H1FF8
s%(29)=&H1FF8
s%(30)=&H07E0
s%(31)=&H07E0
s%(32)=&H0180
s%(33)=&H0180
s%(34)=0
s%(35)=0
LOCATE 5,2
PRINT"Press Any Key To Exit"
REM This call to Intuition Library changes pointer.
CALL SetPointer&(WINDOW(7),VARPTR(s%(0)),16,16,-8,-8)
loop:
a$=INKEY$:IF a$="" THEN loop
REM This call puts back old pointer.
CALL ClearPointer&(WINDOW(7))
LIBRARY CLOSE
END